package com.chaopei.day03;

/**
 * @Author Corday 天涯
 * @Date 2022/3/7 9:35
 */
public abstract class MyAbstract {
    //封装的成员变量
    private int mid;
    private String mname;
    private String gender;

    public MyAbstract() {
    }
    public abstract String speak();
    public MyAbstract(int mid, String mname, String gender) {
        this.mid = mid;
        this.mname = mname;
        this.gender = gender;
    }
//    set/get

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public String getMname() {
        return mname;
    }

    public void setMname(String mname) {
        this.mname = mname;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
}
